package homework.homework_1;

public class Test {
    public static void main(String[] args){
        Computer c = new Computer();
        Thread p1 = new Thread(new Production(c),"1号生产线");
        Thread p2 = new Thread(new Production(c),"2号生产线");
        Thread p3 = new Thread(new Production(c),"3号生产线");
        Thread p4 = new Thread(new Production(c),"4号生产线");
        Thread r1 = new Thread(new Remove(c),"1号搬运线");
        Thread r2 = new Thread(new Remove(c),"2号搬运线");

        p1.start();
        p2.start();
        p3.start();
        p4.start();
        r1.start();
        r2.start();
    }
}
